翻訳と辞書
Words near each other
・ Functional sentence perspective
・ Functional shift
・ Functional Skills Qualification
・ Functional software architecture
・ Functional sourcing
・ Functional specialization (brain)
・ Functional specification
・ Functional spinal unit
・ Functional square root
・ Functional Strategy
・ Function object
・ Function of a real variable
・ Function of several real variables
・ Function overloading
・ Function point
Function pointer
・ Function problem
・ Function prologue
・ Function prototype
・ Function representation
・ Function series
・ Function space
・ Function test
・ Function tree
・ Function type
・ Function value
・ Function word
・ Function-Behaviour-Structure ontology
・ Function-level programming
・ Function-spacer-lipid construct


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Function pointer : ウィキペディア英語版
Function pointer
A function pointer (or subroutine pointer or procedure pointer) is a type of pointer supported by third-generation programming languages (such as PL/I, COBOL, Fortran, dBASE dBL, and C) and object-oriented programming languages (such as C++ and D).
Instead of referring to data values, a function pointer points to executable code within memory. When dereferenced, a function pointer can be used to invoke the function it points to and pass it arguments just like a normal function call. Such an invocation is also known as an "indirect" call, because the function is being invoked ''indirectly'' through a variable instead of ''directly'' through a fixed name or address.
Function pointers can be used to simplify code by providing a simple way to select a function to execute based on run-time values.
==Simple function pointers==
The simplest implementation of a function (or subroutine) pointer is as a variable containing the address of the function within executable memory. Older third-generation languages such as PL/I and COBOL, as well as more modern languages such as Pascal and C generally implement function pointers in this manner. Such pointers in older languages are generally less type-safe than in more modern languages since the latter associate more typing information with a function pointer variable, such as the data type of the return value of the function and the data type information of the parameters to the function.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Function pointer」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.